/*****************************************************************************
*  Copyright Statement:
*  --------------------
*  This software is protected by Copyright and the information contained
*  herein is confidential. The software may not be copied and the information
*  contained herein may not be used or disclosed
*
*****************************************************************************/

/**
  ******************************************************************************
  * @file    md5.h
  * @author  
  * @version 
  * @date    
  * @brief   
  ******************************************************************************
  */
#ifndef _MD5_H_
#define _MD5_H_

#ifdef __cplusplus
 extern "C" {
#endif

#include <stdio.h>	
#include <string.h>

typedef struct
{
    uint32_t count[2];
    uint32_t state[4];
    uint8_t  buffer[64];   
}MD5_CTX_S;
                                 
void MD5Init(MD5_CTX_S *context);
void MD5Update(MD5_CTX_S *context, uint8_t *input, uint32_t inputlen);
void MD5Final(MD5_CTX_S *context, uint8_t digest[16]);

#ifdef __cplusplus
}
#endif

#endif
